home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / g_man / cat3 / OpenGL / gludisk.z / gludisk
Encoding:
Text File  |  2002-10-03  |  3.5 KB  |  67 lines

  1.  
  2.  
  3.  
  4. gggglllluuuuDDDDiiiisssskkkk((((3333GGGG))))                    OOOOppppeeeennnnGGGGLLLL RRRReeeeffffeeeerrrreeeennnncccceeee                    gggglllluuuuDDDDiiiisssskkkk((((3333GGGG))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      gggglllluuuuDDDDiiiisssskkkk - draw a disk
  10.  
  11.  
  12. CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
  13.      void gggglllluuuuDDDDiiiisssskkkk( GLUquadric* _q_u_a_d,
  14.                    GLdouble _i_n_n_e_r,
  15.                    GLdouble _o_u_t_e_r,
  16.                    GLint _s_l_i_c_e_s,
  17.                    GLint _l_o_o_p_s )
  18.  
  19.  
  20. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  21.      _q_u_a_d    Specifies the quadrics object (created with gggglllluuuuNNNNeeeewwwwQQQQuuuuaaaaddddrrrriiiicccc).
  22.  
  23.      _i_n_n_e_r   Specifies the inner radius of the disk (may be 0).
  24.  
  25.      _o_u_t_e_r   Specifies the outer radius of the disk.
  26.  
  27.      _s_l_i_c_e_s  Specifies the number of subdivisions around the _z axis.
  28.  
  29.      _l_o_o_p_s   Specifies the number of concentric rings about the origin into
  30.              which the disk is subdivided.
  31.  
  32. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  33.      gggglllluuuuDDDDiiiisssskkkk renders a disk on the _z = 0 plane. The disk has a radius of
  34.      _o_u_t_e_r, and contains a concentric circular hole with a radius of _i_n_n_e_r. If
  35.      _i_n_n_e_r is 0, then no hole is generated. The disk is subdivided around the
  36.      _z axis into slices (like pizza slices), and also about the _z axis into
  37.      rings (as specified by _s_l_i_c_e_s and _l_o_o_p_s, respectively).
  38.  
  39.      With respect to orientation, the +_z side of the disk is considered to be
  40.      "outside" (see gggglllluuuuQQQQuuuuaaaaddddrrrriiiiccccOOOOrrrriiiieeeennnnttttaaaattttiiiioooonnnn).  This means that if the
  41.      orientation is set to GGGGLLLLUUUU____OOOOUUUUTTTTSSSSIIIIDDDDEEEE, then any normals generated point along
  42.      the +_z axis. Otherwise, they point along the -_z axis.
  43.  
  44.      If texturing has been turned on (with gggglllluuuuQQQQuuuuaaaaddddrrrriiiiccccTTTTeeeexxxxttttuuuurrrreeee), texture
  45.      coordinates are generated linearly such that where r = outer, the value
  46.      at (_r, 0, 0) is (1, 0.5), at (0, _r, 0) it is (0.5, 1), at (-_r, 0, 0) it
  47.      is (0, 0.5), and at (0, -_r, 0) it is (0.5, 0).
  48.  
  49. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  50.      gggglllluuuuCCCCyyyylllliiiinnnnddddeeeerrrr, gggglllluuuuNNNNeeeewwwwQQQQuuuuaaaaddddrrrriiiicccc, gggglllluuuuPPPPaaaarrrrttttiiiiaaaallllDDDDiiiisssskkkk, gggglllluuuuQQQQuuuuaaaaddddrrrriiiiccccOOOOrrrriiiieeeennnnttttaaaattttiiiioooonnnn,
  51.      gggglllluuuuQQQQuuuuaaaaddddrrrriiiiccccTTTTeeeexxxxttttuuuurrrreeee, gggglllluuuuSSSSpppphhhheeeerrrreeee
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.